package com.youbug.system.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.youbug.common.config.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 公告信息表
 * </p>
 *
 * @author youbug
 * @since 2023-04-11
 */
@Data
@EqualsAndHashCode(callSuper = true)
@ApiModel(value="Announcement对象", description="公告信息表")
public class Announcement extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键")
      @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "公告类型，text,image")
    private String type;

    @ApiModelProperty(value = "公告内容")
    private String content;

    @ApiModelProperty(value = "点击后的链接")
    private String link;

    @ApiModelProperty(value = "是否有效 1：有效；0：无效")
    private Integer valid;

}
